/*
 *
 *  This file is part of Cfu
 *
 *  Cfu is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *  
 *  Cfu is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *  
 *  You should have received a copy of the GNU General Public License
 *  along with Cfu. If not, see <http://www.gnu.org/licenses/>.
 *
 *  mainwindow.hpp - william le ferrand (william@corefarm.com) 29/04/2010 15:30
 *
 */

#ifndef MAIN_WINDOW_HPP_
#define MAIN_WINDOW_HPP_

// QT
#include <QMainWindow>
#include <QTimer>
#include <QAction>

// CFU
#include <ui_mainwindow.h>

class mainwindow_t : public QMainWindow
{
  Q_OBJECT
  Q_PROPERTY(bool visible READ isVisible NOTIFY visibleChanged)
    
public:
    mainwindow_t(QAction *submitJobAction);
   ~mainwindow_t();
  void updateStatus(QString msg); 
  void setEnabled (bool enable); 
  QString getFile (); 
  int getGhz (); 
  int getIsExr (); 

signals:
  void visibleChanged(bool); 

protected:
  void closeEvent(QCloseEvent *);

private slots: 
  void _onSubmit (); 
  void _onSelectXML (); 

private: 
  void _refresh();
     
private: 
  Ui::MainWindow *_ui;
  QAction *_submitJobAction;
  QString _file; 

  

}; 

#endif
